<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
     <%@taglib uri="/struts-tags" prefix="s"%>
     <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Xếp hạng đội bóng</title>
<link rel="stylesheet" href="<s:url value="/css/bootstrap.css"/>">
<%
	int i=1;
%>
</head>
<body>
<div class="navbar navbar-inverse">
        <div class="container">
          <div class="navbar-header">
            <a class="navbar-brand" href="#">Bóng đá</a>
          </div>
          <div class="navbar-collapse collapse">
            <ul class="nav navbar-nav">
              <li><a href="register">Quản lý đội bóng</a></li>
              <li><a href="danhsach">Danh sách đội bóng</a></li>
              <li><a href="hienthi">Lịch thi đấu</a></li>
              <li><a href="ketqua">Rank</a></li>
            </ul>
          </div><!--/.nav-collapse -->
        </div>
      </div>
      <div class="panel panel-primary" style="margin-left: 10%;margin-right: 10%">
            <div class="panel-heading">
              <h3 class="panel-title">Lịch thi đấu</h3>
            </div>
            <div class="panel-body">
              <table class="table table-hover">
				<tr>
					<th>Rank</th>
					<th>Mã đội</th>
					<th>Tên đội</th>
					<th>Điểm</th>
					<th>Hệ số bàn thắng thua</th>
				</tr>
				<c:forEach items="${teamList}" var="obj">
					<tr>
						<td><%=i++%></td>
						<td><c:out value="${obj.idteam}">${obj.idteam}</c:out></td>
						<td><c:out value="${obj.nameTeam}">${obj.nameTeam}</c:out></td>
						<td><c:out value="${obj.diem}">${obj.diem}</c:out></td>
						<td><c:out value="${obj.hieuso}">${obj.hieuso}</c:out></td>
					</tr>
				</c:forEach>
				</table>
            </div>
          </div>
</body>
</html>